package com.chinasoft.Config;

import org.springframework.context.annotation.*;

import java.util.Random;

@Configuration
@ComponentScan({"com.chinasoft.service", "com.chinasoft.advice"})
@Import({JdbcConfig.class,MybatisConfig.class})
@EnableAspectJAutoProxy //代理对象自动替换目标对象
public class SpringConfig {
    @Bean
    public Random getRandom(){
        return new Random();
    }
}
